package com.security.lasys.object;

import java.io.Serializable;
import java.util.Date;

public class DetectorEvent implements Serializable {

    private String type = "";
    private String src_ip = "";
    private String src_port = "";
    private String dest_ip = "";
    private String dest_port = "";
    private Date date = null;//日志产生的时间
    private String protocol = "";//协议
    private long stream = 0;//流量

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSrc_ip() {

        return src_ip;
    }

    public void setSrc_ip(String src_ip) {
        this.src_ip = src_ip;
    }

    public String getSrc_port() {
        return src_port;
    }

    public void setSrc_port(String src_port) {
        this.src_port = src_port;
    }

    public String getDest_ip() {
        return dest_ip;
    }

    public void setDest_ip(String dest_ip) {
        this.dest_ip = dest_ip;
    }

    public String getDest_port() {
        return dest_port;
    }

    public void setDest_port(String dest_port) {
        this.dest_port = dest_port;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public long getStream() {
        return stream;
    }

    public void setStream(long stream) {
        this.stream = stream;
    }

    @Override
    public String toString() {
        return "DetectorEvent{" +
                "type='" + type + '\'' +
                ", src_ip='" + src_ip + '\'' +
                ", src_port='" + src_port + '\'' +
                ", dest_ip='" + dest_ip + '\'' +
                ", dest_port='" + dest_port + '\'' +
                ", date=" + date +
                ", protocol='" + protocol + '\'' +
                ", stream=" + stream +
                '}';
    }
}
